<?php

return [
    'system' => [
        'error' => '系统错误',
        'error_code' => '500',
        'request' => [
            'request_frequent' => '频繁请求',
            'request_frequent_code' => '322',
            'request_illegal' => '参数错误',
            'request_illegal_code' => '422',
        ],
    ],
    'product' => [
        'index' => 'success',
        'index_code' => '200',
        'show' => 'success',
        'show_code' => '200',
        'not_found' => '商品未找到',
        'not_found_code' => '404',
    ],
    'cart' => [
        'index' => 'success',
        'index_code' => '200',
        'add' => [
            'failure' => '购物车添加失败',
            'failure_code' => '500',
            'success' => '购物车更新成功',
            'success_code' => '200',
        ],
        'delete' => 'success',
        'delete_code' => '200',
        'not_found' => '购物车信息错误',
        'not_found_code' => '404',
    ],
    'category' => [
        'index' => 'success',
        'index_code' => '200',
    ],
    'home' => [
        'index' => 'success',
        'index_code' => '200',
    ],
    'login' => [
        'success' => '登录成功',
        'success_code' => '200',
        'user_not_found' => '账户不存在',
        'user_not_found_code' => '404',
        'check_failure' => '用户名或密码错误',
        'check_failure_code' => '403',
        'need' => '请先登录',
        'need_code' => '401',
    ],
    'logout' => [
        'success' => '登出成功',
        'success_code' => '200',
    ],
    'password' => [
        'confirm_failure' => '两次密码不一致',
        'confirm_failure_code' => '422',
        'failure' => '密码设置失败',
        'failure_code' => '500',
        'success' => 'success',
        'success_code' => '200',
        'empty' => '请设置密码',
        'empty_code' => '412',
    ],
    'verify_code' => [
        'type_illegal' => '验证码类型错误',
        'type_illegal_code' => '403',
        'failure' => '验证码发送失败',
        'failure_code' => '500',
        'success' => '验证码发送成功',
        'success_code' => '200',
        'expired' => '验证码已过期',
        'expired_code' => '422',
        'check_failure' => '验证码错误',
        'check_failure_code' => '422',
        'check_success' => '验证通过',
        'check_success_code' => '200',
    ],
    'user' => [
        'exists' => '账户已存在',
        'exists_code' => '202',
        'not_exists' => '账户不存在',
        'not_exists_code' => '404',
    ],
    'order' => [
        'success' => '请求成功',
        'success_code' => '200',
        'failure' => '库存不足',
        'failure_code' => '500',
        'product_not_found' => '购物车商品不存在',
        'product_not_found_code' => '404',
        'address_not_found' => '收货地址有误',
        'address_not_found_code' => '404',
    ],
    'suggestion' => [
        'contact' => '联系方式至少填一种',
        'contact_code' => '422',
        'content' => '内容不能为空',
        'content_code' => '422',
        'type' => '类型错误',
        'type_code' => '422',
    ],
];
